# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py
# RUN: llc -O0 -mtriple=aarch64 -run-pass=legalizer -verify-machineinstrs -global-isel-abort=0 %s -o - | FileCheck %s
# FIXME: Legalize s4_s32.

---
name:            test_inserts_nonpow2
body: |
  bb.0:
    liveins: $x0, $x1, $x2


    ; CHECK-LABEL: name: test_inserts_nonpow2
    ; CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY $x0
    ; CHECK: [[COPY1:%[0-9]+]]:_(s64) = COPY $x1
    ; CHECK: [[COPY2:%[0-9]+]]:_(s64) = COPY $x2
    ; CHECK: [[COPY3:%[0-9]+]]:_(s64) = COPY $x3
    ; CHECK: $x0 = COPY [[COPY3]](s64)
    ; CHECK: RET_ReallyLR
    %0:_(s64) = COPY $x0
    %1:_(s64) = COPY $x1
    %2:_(s64) = COPY $x2
    %3:_(s64) = COPY $x3
    %4:_(s192) = G_MERGE_VALUES %0, %1, %2
    %5:_(s192) = G_INSERT %4, %3, 0
    %6:_(s64), %7:_(s64), %8:_(s64) = G_UNMERGE_VALUES %5
    $x0 = COPY %6
    RET_ReallyLR
...
---
name:            test_inserts_s96
body: |
  bb.0:
    liveins: $x0, $x1, $x2

    ; CHECK-LABEL: name: test_inserts_s96
    ; CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY $x0
    ; CHECK: [[COPY1:%[0-9]+]]:_(s64) = COPY $x1
    ; CHECK: [[COPY2:%[0-9]+]]:_(s64) = COPY $x2
    ; CHECK: [[TRUNC:%[0-9]+]]:_(s32) = G_TRUNC [[COPY2]](s64)
    ; CHECK: [[UV:%[0-9]+]]:_(s32), [[UV1:%[0-9]+]]:_(s32) = G_UNMERGE_VALUES [[COPY]](s64)
    ; CHECK: [[DEF:%[0-9]+]]:_(s32) = G_IMPLICIT_DEF
    ; CHECK: [[MV:%[0-9]+]]:_(s64) = G_MERGE_VALUES [[UV]](s32), [[UV1]](s32)
    ; CHECK: [[MV1:%[0-9]+]]:_(s64) = G_MERGE_VALUES [[TRUNC]](s32), [[DEF]](s32)
    ; CHECK: $x0 = COPY [[MV]](s64)
    ; CHECK: $x1 = COPY [[MV1]](s64)
    %0:_(s64) = COPY $x0
    %1:_(s64) = COPY $x1
    %2:_(s64) = COPY $x2
    %3:_(s128) = G_MERGE_VALUES %0:_(s64), %1:_(s64)
    %4:_(s96) = G_TRUNC %3(s128)
    %5:_(s32) = G_TRUNC %2(s64)
    %6:_(s96) = G_INSERT %4, %5(s32), 64
    %7:_(s128) = G_ANYEXT %6(s96)
    %8:_(s64), %9:_(s64) = G_UNMERGE_VALUES %7
    $x0 = COPY %8
    $x1 = COPY %9
...
---
name:            test_inserts_s65
body: |
  bb.0:
    liveins: $x0, $x1, $x2

    ; CHECK-LABEL: name: test_inserts_s65
    ; CHECK: [[COPY:%[0-9]+]]:_(s64) = COPY $x0
    ; CHECK: [[COPY1:%[0-9]+]]:_(s64) = COPY $x1
    ; CHECK: [[COPY2:%[0-9]+]]:_(s64) = COPY $x2
    ; CHECK: [[UV:%[0-9]+]]:_(s8), [[UV1:%[0-9]+]]:_(s8), [[UV2:%[0-9]+]]:_(s8), [[UV3:%[0-9]+]]:_(s8), [[UV4:%[0-9]+]]:_(s8), [[UV5:%[0-9]+]]:_(s8), [[UV6:%[0-9]+]]:_(s8), [[UV7:%[0-9]+]]:_(s8) = G_UNMERGE_VALUES [[COPY]](s64)
    ; CHECK: [[C:%[0-9]+]]:_(s8) = G_CONSTANT i8 1
    ; CHECK: [[ZEXT:%[0-9]+]]:_(s32) = G_ZEXT [[UV]](s8)
    ; CHECK: [[C1:%[0-9]+]]:_(s64) = G_CONSTANT i64 1
    ; CHECK: [[LSHR:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT]], [[C1]](s64)
    ; CHECK: [[C2:%[0-9]+]]:_(s8) = G_CONSTANT i8 2
    ; CHECK: [[ZEXT1:%[0-9]+]]:_(s32) = G_ZEXT [[UV]](s8)
    ; CHECK: [[C3:%[0-9]+]]:_(s64) = G_CONSTANT i64 2
    ; CHECK: [[LSHR1:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT1]], [[C3]](s64)
    ; CHECK: [[C4:%[0-9]+]]:_(s8) = G_CONSTANT i8 3
    ; CHECK: [[ZEXT2:%[0-9]+]]:_(s32) = G_ZEXT [[UV]](s8)
    ; CHECK: [[C5:%[0-9]+]]:_(s64) = G_CONSTANT i64 3
    ; CHECK: [[LSHR2:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT2]], [[C5]](s64)
    ; CHECK: [[C6:%[0-9]+]]:_(s8) = G_CONSTANT i8 4
    ; CHECK: [[ZEXT3:%[0-9]+]]:_(s32) = G_ZEXT [[UV]](s8)
    ; CHECK: [[C7:%[0-9]+]]:_(s64) = G_CONSTANT i64 4
    ; CHECK: [[LSHR3:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT3]], [[C7]](s64)
    ; CHECK: [[C8:%[0-9]+]]:_(s8) = G_CONSTANT i8 5
    ; CHECK: [[ZEXT4:%[0-9]+]]:_(s32) = G_ZEXT [[UV]](s8)
    ; CHECK: [[C9:%[0-9]+]]:_(s64) = G_CONSTANT i64 5
    ; CHECK: [[LSHR4:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT4]], [[C9]](s64)
    ; CHECK: [[C10:%[0-9]+]]:_(s8) = G_CONSTANT i8 6
    ; CHECK: [[ZEXT5:%[0-9]+]]:_(s32) = G_ZEXT [[UV]](s8)
    ; CHECK: [[C11:%[0-9]+]]:_(s64) = G_CONSTANT i64 6
    ; CHECK: [[LSHR5:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT5]], [[C11]](s64)
    ; CHECK: [[C12:%[0-9]+]]:_(s8) = G_CONSTANT i8 7
    ; CHECK: [[ZEXT6:%[0-9]+]]:_(s32) = G_ZEXT [[UV]](s8)
    ; CHECK: [[C13:%[0-9]+]]:_(s64) = G_CONSTANT i64 7
    ; CHECK: [[LSHR6:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT6]], [[C13]](s64)
    ; CHECK: [[ZEXT7:%[0-9]+]]:_(s32) = G_ZEXT [[UV1]](s8)
    ; CHECK: [[LSHR7:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT7]], [[C1]](s64)
    ; CHECK: [[ZEXT8:%[0-9]+]]:_(s32) = G_ZEXT [[UV1]](s8)
    ; CHECK: [[LSHR8:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT8]], [[C3]](s64)
    ; CHECK: [[ZEXT9:%[0-9]+]]:_(s32) = G_ZEXT [[UV1]](s8)
    ; CHECK: [[LSHR9:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT9]], [[C5]](s64)
    ; CHECK: [[ZEXT10:%[0-9]+]]:_(s32) = G_ZEXT [[UV1]](s8)
    ; CHECK: [[LSHR10:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT10]], [[C7]](s64)
    ; CHECK: [[ZEXT11:%[0-9]+]]:_(s32) = G_ZEXT [[UV1]](s8)
    ; CHECK: [[LSHR11:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT11]], [[C9]](s64)
    ; CHECK: [[ZEXT12:%[0-9]+]]:_(s32) = G_ZEXT [[UV1]](s8)
    ; CHECK: [[LSHR12:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT12]], [[C11]](s64)
    ; CHECK: [[ZEXT13:%[0-9]+]]:_(s32) = G_ZEXT [[UV1]](s8)
    ; CHECK: [[LSHR13:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT13]], [[C13]](s64)
    ; CHECK: [[ZEXT14:%[0-9]+]]:_(s32) = G_ZEXT [[UV2]](s8)
    ; CHECK: [[LSHR14:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT14]], [[C1]](s64)
    ; CHECK: [[ZEXT15:%[0-9]+]]:_(s32) = G_ZEXT [[UV2]](s8)
    ; CHECK: [[LSHR15:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT15]], [[C3]](s64)
    ; CHECK: [[ZEXT16:%[0-9]+]]:_(s32) = G_ZEXT [[UV2]](s8)
    ; CHECK: [[LSHR16:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT16]], [[C5]](s64)
    ; CHECK: [[ZEXT17:%[0-9]+]]:_(s32) = G_ZEXT [[UV2]](s8)
    ; CHECK: [[LSHR17:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT17]], [[C7]](s64)
    ; CHECK: [[ZEXT18:%[0-9]+]]:_(s32) = G_ZEXT [[UV2]](s8)
    ; CHECK: [[LSHR18:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT18]], [[C9]](s64)
    ; CHECK: [[ZEXT19:%[0-9]+]]:_(s32) = G_ZEXT [[UV2]](s8)
    ; CHECK: [[LSHR19:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT19]], [[C11]](s64)
    ; CHECK: [[ZEXT20:%[0-9]+]]:_(s32) = G_ZEXT [[UV2]](s8)
    ; CHECK: [[LSHR20:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT20]], [[C13]](s64)
    ; CHECK: [[ZEXT21:%[0-9]+]]:_(s32) = G_ZEXT [[UV3]](s8)
    ; CHECK: [[LSHR21:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT21]], [[C1]](s64)
    ; CHECK: [[ZEXT22:%[0-9]+]]:_(s32) = G_ZEXT [[UV3]](s8)
    ; CHECK: [[LSHR22:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT22]], [[C3]](s64)
    ; CHECK: [[ZEXT23:%[0-9]+]]:_(s32) = G_ZEXT [[UV3]](s8)
    ; CHECK: [[LSHR23:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT23]], [[C5]](s64)
    ; CHECK: [[ZEXT24:%[0-9]+]]:_(s32) = G_ZEXT [[UV3]](s8)
    ; CHECK: [[LSHR24:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT24]], [[C7]](s64)
    ; CHECK: [[ZEXT25:%[0-9]+]]:_(s32) = G_ZEXT [[UV3]](s8)
    ; CHECK: [[LSHR25:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT25]], [[C9]](s64)
    ; CHECK: [[ZEXT26:%[0-9]+]]:_(s32) = G_ZEXT [[UV3]](s8)
    ; CHECK: [[LSHR26:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT26]], [[C11]](s64)
    ; CHECK: [[ZEXT27:%[0-9]+]]:_(s32) = G_ZEXT [[UV3]](s8)
    ; CHECK: [[LSHR27:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT27]], [[C13]](s64)
    ; CHECK: [[ZEXT28:%[0-9]+]]:_(s32) = G_ZEXT [[UV4]](s8)
    ; CHECK: [[LSHR28:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT28]], [[C1]](s64)
    ; CHECK: [[ZEXT29:%[0-9]+]]:_(s32) = G_ZEXT [[UV4]](s8)
    ; CHECK: [[LSHR29:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT29]], [[C3]](s64)
    ; CHECK: [[ZEXT30:%[0-9]+]]:_(s32) = G_ZEXT [[UV4]](s8)
    ; CHECK: [[LSHR30:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT30]], [[C5]](s64)
    ; CHECK: [[ZEXT31:%[0-9]+]]:_(s32) = G_ZEXT [[UV4]](s8)
    ; CHECK: [[LSHR31:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT31]], [[C7]](s64)
    ; CHECK: [[ZEXT32:%[0-9]+]]:_(s32) = G_ZEXT [[UV4]](s8)
    ; CHECK: [[LSHR32:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT32]], [[C9]](s64)
    ; CHECK: [[ZEXT33:%[0-9]+]]:_(s32) = G_ZEXT [[UV4]](s8)
    ; CHECK: [[LSHR33:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT33]], [[C11]](s64)
    ; CHECK: [[ZEXT34:%[0-9]+]]:_(s32) = G_ZEXT [[UV4]](s8)
    ; CHECK: [[LSHR34:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT34]], [[C13]](s64)
    ; CHECK: [[ZEXT35:%[0-9]+]]:_(s32) = G_ZEXT [[UV5]](s8)
    ; CHECK: [[LSHR35:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT35]], [[C1]](s64)
    ; CHECK: [[ZEXT36:%[0-9]+]]:_(s32) = G_ZEXT [[UV5]](s8)
    ; CHECK: [[LSHR36:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT36]], [[C3]](s64)
    ; CHECK: [[ZEXT37:%[0-9]+]]:_(s32) = G_ZEXT [[UV5]](s8)
    ; CHECK: [[LSHR37:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT37]], [[C5]](s64)
    ; CHECK: [[ZEXT38:%[0-9]+]]:_(s32) = G_ZEXT [[UV5]](s8)
    ; CHECK: [[LSHR38:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT38]], [[C7]](s64)
    ; CHECK: [[ZEXT39:%[0-9]+]]:_(s32) = G_ZEXT [[UV5]](s8)
    ; CHECK: [[LSHR39:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT39]], [[C9]](s64)
    ; CHECK: [[ZEXT40:%[0-9]+]]:_(s32) = G_ZEXT [[UV5]](s8)
    ; CHECK: [[LSHR40:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT40]], [[C11]](s64)
    ; CHECK: [[ZEXT41:%[0-9]+]]:_(s32) = G_ZEXT [[UV5]](s8)
    ; CHECK: [[LSHR41:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT41]], [[C13]](s64)
    ; CHECK: [[ZEXT42:%[0-9]+]]:_(s32) = G_ZEXT [[UV6]](s8)
    ; CHECK: [[LSHR42:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT42]], [[C1]](s64)
    ; CHECK: [[ZEXT43:%[0-9]+]]:_(s32) = G_ZEXT [[UV6]](s8)
    ; CHECK: [[LSHR43:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT43]], [[C3]](s64)
    ; CHECK: [[ZEXT44:%[0-9]+]]:_(s32) = G_ZEXT [[UV6]](s8)
    ; CHECK: [[LSHR44:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT44]], [[C5]](s64)
    ; CHECK: [[ZEXT45:%[0-9]+]]:_(s32) = G_ZEXT [[UV6]](s8)
    ; CHECK: [[LSHR45:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT45]], [[C7]](s64)
    ; CHECK: [[ZEXT46:%[0-9]+]]:_(s32) = G_ZEXT [[UV6]](s8)
    ; CHECK: [[LSHR46:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT46]], [[C9]](s64)
    ; CHECK: [[ZEXT47:%[0-9]+]]:_(s32) = G_ZEXT [[UV6]](s8)
    ; CHECK: [[LSHR47:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT47]], [[C11]](s64)
    ; CHECK: [[ZEXT48:%[0-9]+]]:_(s32) = G_ZEXT [[UV6]](s8)
    ; CHECK: [[LSHR48:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT48]], [[C13]](s64)
    ; CHECK: [[ZEXT49:%[0-9]+]]:_(s32) = G_ZEXT [[UV7]](s8)
    ; CHECK: [[LSHR49:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT49]], [[C1]](s64)
    ; CHECK: [[ZEXT50:%[0-9]+]]:_(s32) = G_ZEXT [[UV7]](s8)
    ; CHECK: [[LSHR50:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT50]], [[C3]](s64)
    ; CHECK: [[ZEXT51:%[0-9]+]]:_(s32) = G_ZEXT [[UV7]](s8)
    ; CHECK: [[LSHR51:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT51]], [[C5]](s64)
    ; CHECK: [[ZEXT52:%[0-9]+]]:_(s32) = G_ZEXT [[UV7]](s8)
    ; CHECK: [[LSHR52:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT52]], [[C7]](s64)
    ; CHECK: [[ZEXT53:%[0-9]+]]:_(s32) = G_ZEXT [[UV7]](s8)
    ; CHECK: [[LSHR53:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT53]], [[C9]](s64)
    ; CHECK: [[ZEXT54:%[0-9]+]]:_(s32) = G_ZEXT [[UV7]](s8)
    ; CHECK: [[LSHR54:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT54]], [[C11]](s64)
    ; CHECK: [[ZEXT55:%[0-9]+]]:_(s32) = G_ZEXT [[UV7]](s8)
    ; CHECK: [[LSHR55:%[0-9]+]]:_(s32) = G_LSHR [[ZEXT55]], [[C13]](s64)
    ; CHECK: [[C14:%[0-9]+]]:_(s32) = G_CONSTANT i32 1
    ; CHECK: [[COPY3:%[0-9]+]]:_(s32) = COPY [[LSHR]](s32)
    ; CHECK: [[AND:%[0-9]+]]:_(s32) = G_AND [[COPY3]], [[C14]]
    ; CHECK: [[SHL:%[0-9]+]]:_(s32) = G_SHL [[AND]], [[C1]](s64)
    ; CHECK: [[ANYEXT:%[0-9]+]]:_(s32) = G_ANYEXT [[UV]](s8)
    ; CHECK: [[AND1:%[0-9]+]]:_(s32) = G_AND [[ANYEXT]], [[C14]]
    ; CHECK: [[COPY4:%[0-9]+]]:_(s32) = COPY [[SHL]](s32)
    ; CHECK: [[OR:%[0-9]+]]:_(s32) = G_OR [[AND1]], [[COPY4]]
    ; CHECK: [[COPY5:%[0-9]+]]:_(s32) = COPY [[LSHR1]](s32)
    ; CHECK: [[AND2:%[0-9]+]]:_(s32) = G_AND [[COPY5]], [[C14]]
    ; CHECK: [[SHL1:%[0-9]+]]:_(s32) = G_SHL [[AND2]], [[C3]](s64)
    ; CHECK: [[COPY6:%[0-9]+]]:_(s32) = COPY [[OR]](s32)
    ; CHECK: [[COPY7:%[0-9]+]]:_(s32) = COPY [[SHL1]](s32)
    ; CHECK: [[OR1:%[0-9]+]]:_(s32) = G_OR [[COPY6]], [[COPY7]]
    ; CHECK: [[COPY8:%[0-9]+]]:_(s32) = COPY [[LSHR2]](s32)
    ; CHECK: [[AND3:%[0-9]+]]:_(s32) = G_AND [[COPY8]], [[C14]]
    ; CHECK: [[SHL2:%[0-9]+]]:_(s32) = G_SHL [[AND3]], [[C5]](s64)
    ; CHECK: [[COPY9:%[0-9]+]]:_(s32) = COPY [[OR1]](s32)
    ; CHECK: [[COPY10:%[0-9]+]]:_(s32) = COPY [[SHL2]](s32)
    ; CHECK: [[OR2:%[0-9]+]]:_(s32) = G_OR [[COPY9]], [[COPY10]]
    ; CHECK: [[COPY11:%[0-9]+]]:_(s32) = COPY [[LSHR3]](s32)
    ; CHECK: [[AND4:%[0-9]+]]:_(s32) = G_AND [[COPY11]], [[C14]]
    ; CHECK: [[SHL3:%[0-9]+]]:_(s32) = G_SHL [[AND4]], [[C7]](s64)
    ; CHECK: [[COPY12:%[0-9]+]]:_(s32) = COPY [[OR2]](s32)
    ; CHECK: [[COPY13:%[0-9]+]]:_(s32) = COPY [[SHL3]](s32)
    ; CHECK: [[OR3:%[0-9]+]]:_(s32) = G_OR [[COPY12]], [[COPY13]]
    ; CHECK: [[COPY14:%[0-9]+]]:_(s32) = COPY [[LSHR4]](s32)
    ; CHECK: [[AND5:%[0-9]+]]:_(s32) = G_AND [[COPY14]], [[C14]]
    ; CHECK: [[SHL4:%[0-9]+]]:_(s32) = G_SHL [[AND5]], [[C9]](s64)
    ; CHECK: [[COPY15:%[0-9]+]]:_(s32) = COPY [[OR3]](s32)
    ; CHECK: [[COPY16:%[0-9]+]]:_(s32) = COPY [[SHL4]](s32)
    ; CHECK: [[OR4:%[0-9]+]]:_(s32) = G_OR [[COPY15]], [[COPY16]]
    ; CHECK: [[COPY17:%[0-9]+]]:_(s32) = COPY [[LSHR5]](s32)
    ; CHECK: [[AND6:%[0-9]+]]:_(s32) = G_AND [[COPY17]], [[C14]]
    ; CHECK: [[SHL5:%[0-9]+]]:_(s32) = G_SHL [[AND6]], [[C11]](s64)
    ; CHECK: [[COPY18:%[0-9]+]]:_(s32) = COPY [[OR4]](s32)
    ; CHECK: [[COPY19:%[0-9]+]]:_(s32) = COPY [[SHL5]](s32)
    ; CHECK: [[OR5:%[0-9]+]]:_(s32) = G_OR [[COPY18]], [[COPY19]]
    ; CHECK: [[COPY20:%[0-9]+]]:_(s32) = COPY [[LSHR6]](s32)
    ; CHECK: [[AND7:%[0-9]+]]:_(s32) = G_AND [[COPY20]], [[C14]]
    ; CHECK: [[SHL6:%[0-9]+]]:_(s32) = G_SHL [[AND7]], [[C13]](s64)
    ; CHECK: [[COPY21:%[0-9]+]]:_(s32) = COPY [[OR5]](s32)
    ; CHECK: [[COPY22:%[0-9]+]]:_(s32) = COPY [[SHL6]](s32)
    ; CHECK: [[OR6:%[0-9]+]]:_(s32) = G_OR [[COPY21]], [[COPY22]]
    ; CHECK: [[TRUNC:%[0-9]+]]:_(s8) = G_TRUNC [[OR6]](s32)
    ; CHECK: [[COPY23:%[0-9]+]]:_(s32) = COPY [[LSHR7]](s32)
    ; CHECK: [[AND8:%[0-9]+]]:_(s32) = G_AND [[COPY23]], [[C14]]
    ; CHECK: [[SHL7:%[0-9]+]]:_(s32) = G_SHL [[AND8]], [[C1]](s64)
    ; CHECK: [[ANYEXT1:%[0-9]+]]:_(s32) = G_ANYEXT [[UV1]](s8)
    ; CHECK: [[AND9:%[0-9]+]]:_(s32) = G_AND [[ANYEXT1]], [[C14]]
    ; CHECK: [[COPY24:%[0-9]+]]:_(s32) = COPY [[SHL7]](s32)
    ; CHECK: [[OR7:%[0-9]+]]:_(s32) = G_OR [[AND9]], [[COPY24]]
    ; CHECK: [[COPY25:%[0-9]+]]:_(s32) = COPY [[LSHR8]](s32)
    ; CHECK: [[AND10:%[0-9]+]]:_(s32) = G_AND [[COPY25]], [[C14]]
    ; CHECK: [[SHL8:%[0-9]+]]:_(s32) = G_SHL [[AND10]], [[C3]](s64)
    ; CHECK: [[COPY26:%[0-9]+]]:_(s32) = COPY [[OR7]](s32)
    ; CHECK: [[COPY27:%[0-9]+]]:_(s32) = COPY [[SHL8]](s32)
    ; CHECK: [[OR8:%[0-9]+]]:_(s32) = G_OR [[COPY26]], [[COPY27]]
    ; CHECK: [[COPY28:%[0-9]+]]:_(s32) = COPY [[LSHR9]](s32)
    ; CHECK: [[AND11:%[0-9]+]]:_(s32) = G_AND [[COPY28]], [[C14]]
    ; CHECK: [[SHL9:%[0-9]+]]:_(s32) = G_SHL [[AND11]], [[C5]](s64)
    ; CHECK: [[COPY29:%[0-9]+]]:_(s32) = COPY [[OR8]](s32)
    ; CHECK: [[COPY30:%[0-9]+]]:_(s32) = COPY [[SHL9]](s32)
    ; CHECK: [[OR9:%[0-9]+]]:_(s32) = G_OR [[COPY29]], [[COPY30]]
    ; CHECK: [[COPY31:%[0-9]+]]:_(s32) = COPY [[LSHR10]](s32)
    ; CHECK: [[AND12:%[0-9]+]]:_(s32) = G_AND [[COPY31]], [[C14]]
    ; CHECK: [[SHL10:%[0-9]+]]:_(s32) = G_SHL [[AND12]], [[C7]](s64)
    ; CHECK: [[COPY32:%[0-9]+]]:_(s32) = COPY [[OR9]](s32)
    ; CHECK: [[COPY33:%[0-9]+]]:_(s32) = COPY [[SHL10]](s32)
    ; CHECK: [[OR10:%[0-9]+]]:_(s32) = G_OR [[COPY32]], [[COPY33]]
    ; CHECK: [[COPY34:%[0-9]+]]:_(s32) = COPY [[LSHR11]](s32)
    ; CHECK: [[AND13:%[0-9]+]]:_(s32) = G_AND [[COPY34]], [[C14]]
    ; CHECK: [[SHL11:%[0-9]+]]:_(s32) = G_SHL [[AND13]], [[C9]](s64)
    ; CHECK: [[COPY35:%[0-9]+]]:_(s32) = COPY [[OR10]](s32)
    ; CHECK: [[COPY36:%[0-9]+]]:_(s32) = COPY [[SHL11]](s32)
    ; CHECK: [[OR11:%[0-9]+]]:_(s32) = G_OR [[COPY35]], [[COPY36]]
    ; CHECK: [[COPY37:%[0-9]+]]:_(s32) = COPY [[LSHR12]](s32)
    ; CHECK: [[AND14:%[0-9]+]]:_(s32) = G_AND [[COPY37]], [[C14]]
    ; CHECK: [[SHL12:%[0-9]+]]:_(s32) = G_SHL [[AND14]], [[C11]](s64)
    ; CHECK: [[COPY38:%[0-9]+]]:_(s32) = COPY [[OR11]](s32)
    ; CHECK: [[COPY39:%[0-9]+]]:_(s32) = COPY [[SHL12]](s32)
    ; CHECK: [[OR12:%[0-9]+]]:_(s32) = G_OR [[COPY38]], [[COPY39]]
    ; CHECK: [[COPY40:%[0-9]+]]:_(s32) = COPY [[LSHR13]](s32)
    ; CHECK: [[AND15:%[0-9]+]]:_(s32) = G_AND [[COPY40]], [[C14]]
    ; CHECK: [[SHL13:%[0-9]+]]:_(s32) = G_SHL [[AND15]], [[C13]](s64)
    ; CHECK: [[COPY41:%[0-9]+]]:_(s32) = COPY [[OR12]](s32)
    ; CHECK: [[COPY42:%[0-9]+]]:_(s32) = COPY [[SHL13]](s32)
    ; CHECK: [[OR13:%[0-9]+]]:_(s32) = G_OR [[COPY41]], [[COPY42]]
    ; CHECK: [[TRUNC1:%[0-9]+]]:_(s8) = G_TRUNC [[OR13]](s32)
    ; CHECK: [[COPY43:%[0-9]+]]:_(s32) = COPY [[LSHR14]](s32)
    ; CHECK: [[AND16:%[0-9]+]]:_(s32) = G_AND [[COPY43]], [[C14]]
    ; CHECK: [[SHL14:%[0-9]+]]:_(s32) = G_SHL [[AND16]], [[C1]](s64)
    ; CHECK: [[ANYEXT2:%[0-9]+]]:_(s32) = G_ANYEXT [[UV2]](s8)
    ; CHECK: [[AND17:%[0-9]+]]:_(s32) = G_AND [[ANYEXT2]], [[C14]]
    ; CHECK: [[COPY44:%[0-9]+]]:_(s32) = COPY [[SHL14]](s32)
    ; CHECK: [[OR14:%[0-9]+]]:_(s32) = G_OR [[AND17]], [[COPY44]]
    ; CHECK: [[COPY45:%[0-9]+]]:_(s32) = COPY [[LSHR15]](s32)
    ; CHECK: [[AND18:%[0-9]+]]:_(s32) = G_AND [[COPY45]], [[C14]]
    ; CHECK: [[SHL15:%[0-9]+]]:_(s32) = G_SHL [[AND18]], [[C3]](s64)
    ; CHECK: [[COPY46:%[0-9]+]]:_(s32) = COPY [[OR14]](s32)
    ; CHECK: [[COPY47:%[0-9]+]]:_(s32) = COPY [[SHL15]](s32)
    ; CHECK: [[OR15:%[0-9]+]]:_(s32) = G_OR [[COPY46]], [[COPY47]]
    ; CHECK: [[COPY48:%[0-9]+]]:_(s32) = COPY [[LSHR16]](s32)
    ; CHECK: [[AND19:%[0-9]+]]:_(s32) = G_AND [[COPY48]], [[C14]]
    ; CHECK: [[SHL16:%[0-9]+]]:_(s32) = G_SHL [[AND19]], [[C5]](s64)
    ; CHECK: [[COPY49:%[0-9]+]]:_(s32) = COPY [[OR15]](s32)
    ; CHECK: [[COPY50:%[0-9]+]]:_(s32) = COPY [[SHL16]](s32)
    ; CHECK: [[OR16:%[0-9]+]]:_(s32) = G_OR [[COPY49]], [[COPY50]]
    ; CHECK: [[COPY51:%[0-9]+]]:_(s32) = COPY [[LSHR17]](s32)
    ; CHECK: [[AND20:%[0-9]+]]:_(s32) = G_AND [[COPY51]], [[C14]]
    ; CHECK: [[SHL17:%[0-9]+]]:_(s32) = G_SHL [[AND20]], [[C7]](s64)
    ; CHECK: [[COPY52:%[0-9]+]]:_(s32) = COPY [[OR16]](s32)
    ; CHECK: [[COPY53:%[0-9]+]]:_(s32) = COPY [[SHL17]](s32)
    ; CHECK: [[OR17:%[0-9]+]]:_(s32) = G_OR [[COPY52]], [[COPY53]]
    ; CHECK: [[COPY54:%[0-9]+]]:_(s32) = COPY [[LSHR18]](s32)
    ; CHECK: [[AND21:%[0-9]+]]:_(s32) = G_AND [[COPY54]], [[C14]]
    ; CHECK: [[SHL18:%[0-9]+]]:_(s32) = G_SHL [[AND21]], [[C9]](s64)
    ; CHECK: [[COPY55:%[0-9]+]]:_(s32) = COPY [[OR17]](s32)
    ; CHECK: [[COPY56:%[0-9]+]]:_(s32) = COPY [[SHL18]](s32)
    ; CHECK: [[OR18:%[0-9]+]]:_(s32) = G_OR [[COPY55]], [[COPY56]]
    ; CHECK: [[COPY57:%[0-9]+]]:_(s32) = COPY [[LSHR19]](s32)
    ; CHECK: [[AND22:%[0-9]+]]:_(s32) = G_AND [[COPY57]], [[C14]]
    ; CHECK: [[SHL19:%[0-9]+]]:_(s32) = G_SHL [[AND22]], [[C11]](s64)
    ; CHECK: [[COPY58:%[0-9]+]]:_(s32) = COPY [[OR18]](s32)
    ; CHECK: [[COPY59:%[0-9]+]]:_(s32) = COPY [[SHL19]](s32)
    ; CHECK: [[OR19:%[0-9]+]]:_(s32) = G_OR [[COPY58]], [[COPY59]]
    ; CHECK: [[COPY60:%[0-9]+]]:_(s32) = COPY [[LSHR20]](s32)
    ; CHECK: [[AND23:%[0-9]+]]:_(s32) = G_AND [[COPY60]], [[C14]]
    ; CHECK: [[SHL20:%[0-9]+]]:_(s32) = G_SHL [[AND23]], [[C13]](s64)
    ; CHECK: [[COPY61:%[0-9]+]]:_(s32) = COPY [[OR19]](s32)
    ; CHECK: [[COPY62:%[0-9]+]]:_(s32) = COPY [[SHL20]](s32)
    ; CHECK: [[OR20:%[0-9]+]]:_(s32) = G_OR [[COPY61]], [[COPY62]]
    ; CHECK: [[TRUNC2:%[0-9]+]]:_(s8) = G_TRUNC [[OR20]](s32)
    ; CHECK: [[COPY63:%[0-9]+]]:_(s32) = COPY [[LSHR21]](s32)
    ; CHECK: [[AND24:%[0-9]+]]:_(s32) = G_AND [[COPY63]], [[C14]]
    ; CHECK: [[SHL21:%[0-9]+]]:_(s32) = G_SHL [[AND24]], [[C1]](s64)
    ; CHECK: [[ANYEXT3:%[0-9]+]]:_(s32) = G_ANYEXT [[UV3]](s8)
    ; CHECK: [[AND25:%[0-9]+]]:_(s32) = G_AND [[ANYEXT3]], [[C14]]
    ; CHECK: [[COPY64:%[0-9]+]]:_(s32) = COPY [[SHL21]](s32)
    ; CHECK: [[OR21:%[0-9]+]]:_(s32) = G_OR [[AND25]], [[COPY64]]
    ; CHECK: [[COPY65:%[0-9]+]]:_(s32) = COPY [[LSHR22]](s32)
    ; CHECK: [[AND26:%[0-9]+]]:_(s32) = G_AND [[COPY65]], [[C14]]
    ; CHECK: [[SHL22:%[0-9]+]]:_(s32) = G_SHL [[AND26]], [[C3]](s64)
    ; CHECK: [[COPY66:%[0-9]+]]:_(s32) = COPY [[OR21]](s32)
    ; CHECK: [[COPY67:%[0-9]+]]:_(s32) = COPY [[SHL22]](s32)
    ; CHECK: [[OR22:%[0-9]+]]:_(s32) = G_OR [[COPY66]], [[COPY67]]
    ; CHECK: [[COPY68:%[0-9]+]]:_(s32) = COPY [[LSHR23]](s32)
    ; CHECK: [[AND27:%[0-9]+]]:_(s32) = G_AND [[COPY68]], [[C14]]
    ; CHECK: [[SHL23:%[0-9]+]]:_(s32) = G_SHL [[AND27]], [[C5]](s64)
    ; CHECK: [[COPY69:%[0-9]+]]:_(s32) = COPY [[OR22]](s32)
    ; CHECK: [[COPY70:%[0-9]+]]:_(s32) = COPY [[SHL23]](s32)
    ; CHECK: [[OR23:%[0-9]+]]:_(s32) = G_OR [[COPY69]], [[COPY70]]
    ; CHECK: [[COPY71:%[0-9]+]]:_(s32) = COPY [[LSHR24]](s32)
    ; CHECK: [[AND28:%[0-9]+]]:_(s32) = G_AND [[COPY71]], [[C14]]
    ; CHECK: [[SHL24:%[0-9]+]]:_(s32) = G_SHL [[AND28]], [[C7]](s64)
    ; CHECK: [[COPY72:%[0-9]+]]:_(s32) = COPY [[OR23]](s32)
    ; CHECK: [[COPY73:%[0-9]+]]:_(s32) = COPY [[SHL24]](s32)
    ; CHECK: [[OR24:%[0-9]+]]:_(s32) = G_OR [[COPY72]], [[COPY73]]
    ; CHECK: [[COPY74:%[0-9]+]]:_(s32) = COPY [[LSHR25]](s32)
    ; CHECK: [[AND29:%[0-9]+]]:_(s32) = G_AND [[COPY74]], [[C14]]
    ; CHECK: [[SHL25:%[0-9]+]]:_(s32) = G_SHL [[AND29]], [[C9]](s64)
    ; CHECK: [[COPY75:%[0-9]+]]:_(s32) = COPY [[OR24]](s32)
    ; CHECK: [[COPY76:%[0-9]+]]:_(s32) = COPY [[SHL25]](s32)
    ; CHECK: [[OR25:%[0-9]+]]:_(s32) = G_OR [[COPY75]], [[COPY76]]
    ; CHECK: [[COPY77:%[0-9]+]]:_(s32) = COPY [[LSHR26]](s32)
    ; CHECK: [[AND30:%[0-9]+]]:_(s32) = G_AND [[COPY77]], [[C14]]
    ; CHECK: [[SHL26:%[0-9]+]]:_(s32) = G_SHL [[AND30]], [[C11]](s64)
    ; CHECK: [[COPY78:%[0-9]+]]:_(s32) = COPY [[OR25]](s32)
    ; CHECK: [[COPY79:%[0-9]+]]:_(s32) = COPY [[SHL26]](s32)
    ; CHECK: [[OR26:%[0-9]+]]:_(s32) = G_OR [[COPY78]], [[COPY79]]
    ; CHECK: [[COPY80:%[0-9]+]]:_(s32) = COPY [[LSHR27]](s32)
    ; CHECK: [[AND31:%[0-9]+]]:_(s32) = G_AND [[COPY80]], [[C14]]
    ; CHECK: [[SHL27:%[0-9]+]]:_(s32) = G_SHL [[AND31]], [[C13]](s64)
    ; CHECK: [[COPY81:%[0-9]+]]:_(s32) = COPY [[OR26]](s32)
    ; CHECK: [[COPY82:%[0-9]+]]:_(s32) = COPY [[SHL27]](s32)
    ; CHECK: [[OR27:%[0-9]+]]:_(s32) = G_OR [[COPY81]], [[COPY82]]
    ; CHECK: [[TRUNC3:%[0-9]+]]:_(s8) = G_TRUNC [[OR27]](s32)
    ; CHECK: [[COPY83:%[0-9]+]]:_(s32) = COPY [[LSHR28]](s32)
    ; CHECK: [[AND32:%[0-9]+]]:_(s32) = G_AND [[COPY83]], [[C14]]
    ; CHECK: [[SHL28:%[0-9]+]]:_(s32) = G_SHL [[AND32]], [[C1]](s64)
    ; CHECK: [[ANYEXT4:%[0-9]+]]:_(s32) = G_ANYEXT [[UV4]](s8)
    ; CHECK: [[AND33:%[0-9]+]]:_(s32) = G_AND [[ANYEXT4]], [[C14]]
    ; CHECK: [[COPY84:%[0-9]+]]:_(s32) = COPY [[SHL28]](s32)
    ; CHECK: [[OR28:%[0-9]+]]:_(s32) = G_OR [[AND33]], [[COPY84]]
    ; CHECK: [[COPY85:%[0-9]+]]:_(s32) = COPY [[LSHR29]](s32)
    ; CHECK: [[AND34:%[0-9]+]]:_(s32) = G_AND [[COPY85]], [[C14]]
    ; CHECK: [[SHL29:%[0-9]+]]:_(s32) = G_SHL [[AND34]], [[C3]](s64)
    ; CHECK: [[COPY86:%[0-9]+]]:_(s32) = COPY [[OR28]](s32)
    ; CHECK: [[COPY87:%[0-9]+]]:_(s32) = COPY [[SHL29]](s32)
    ; CHECK: [[OR29:%[0-9]+]]:_(s32) = G_OR [[COPY86]], [[COPY87]]
    ; CHECK: [[COPY88:%[0-9]+]]:_(s32) = COPY [[LSHR30]](s32)
    ; CHECK: [[AND35:%[0-9]+]]:_(s32) = G_AND [[COPY88]], [[C14]]
    ; CHECK: [[SHL30:%[0-9]+]]:_(s32) = G_SHL [[AND35]], [[C5]](s64)
    ; CHECK: [[COPY89:%[0-9]+]]:_(s32) = COPY [[OR29]](s32)
    ; CHECK: [[COPY90:%[0-9]+]]:_(s32) = COPY [[SHL30]](s32)
    ; CHECK: [[OR30:%[0-9]+]]:_(s32) = G_OR [[COPY89]], [[COPY90]]
    ; CHECK: [[COPY91:%[0-9]+]]:_(s32) = COPY [[LSHR31]](s32)
    ; CHECK: [[AND36:%[0-9]+]]:_(s32) = G_AND [[COPY91]], [[C14]]
    ; CHECK: [[SHL31:%[0-9]+]]:_(s32) = G_SHL [[AND36]], [[C7]](s64)
    ; CHECK: [[COPY92:%[0-9]+]]:_(s32) = COPY [[OR30]](s32)
    ; CHECK: [[COPY93:%[0-9]+]]:_(s32) = COPY [[SHL31]](s32)
    ; CHECK: [[OR31:%[0-9]+]]:_(s32) = G_OR [[COPY92]], [[COPY93]]
    ; CHECK: [[COPY94:%[0-9]+]]:_(s32) = COPY [[LSHR32]](s32)
    ; CHECK: [[AND37:%[0-9]+]]:_(s32) = G_AND [[COPY94]], [[C14]]
    ; CHECK: [[SHL32:%[0-9]+]]:_(s32) = G_SHL [[AND37]], [[C9]](s64)
    ; CHECK: [[COPY95:%[0-9]+]]:_(s32) = COPY [[OR31]](s32)
    ; CHECK: [[COPY96:%[0-9]+]]:_(s32) = COPY [[SHL32]](s32)
    ; CHECK: [[OR32:%[0-9]+]]:_(s32) = G_OR [[COPY95]], [[COPY96]]
    ; CHECK: [[COPY97:%[0-9]+]]:_(s32) = COPY [[LSHR33]](s32)
    ; CHECK: [[AND38:%[0-9]+]]:_(s32) = G_AND [[COPY97]], [[C14]]
    ; CHECK: [[SHL33:%[0-9]+]]:_(s32) = G_SHL [[AND38]], [[C11]](s64)
    ; CHECK: [[COPY98:%[0-9]+]]:_(s32) = COPY [[OR32]](s32)
    ; CHECK: [[COPY99:%[0-9]+]]:_(s32) = COPY [[SHL33]](s32)
    ; CHECK: [[OR33:%[0-9]+]]:_(s32) = G_OR [[COPY98]], [[COPY99]]
    ; CHECK: [[COPY100:%[0-9]+]]:_(s32) = COPY [[LSHR34]](s32)
    ; CHECK: [[AND39:%[0-9]+]]:_(s32) = G_AND [[COPY100]], [[C14]]
    ; CHECK: [[SHL34:%[0-9]+]]:_(s32) = G_SHL [[AND39]], [[C13]](s64)
    ; CHECK: [[COPY101:%[0-9]+]]:_(s32) = COPY [[OR33]](s32)
    ; CHECK: [[COPY102:%[0-9]+]]:_(s32) = COPY [[SHL34]](s32)
    ; CHECK: [[OR34:%[0-9]+]]:_(s32) = G_OR [[COPY101]], [[COPY102]]
    ; CHECK: [[TRUNC4:%[0-9]+]]:_(s8) = G_TRUNC [[OR34]](s32)
    ; CHECK: [[COPY103:%[0-9]+]]:_(s32) = COPY [[LSHR35]](s32)
    ; CHECK: [[AND40:%[0-9]+]]:_(s32) = G_AND [[COPY103]], [[C14]]
    ; CHECK: [[SHL35:%[0-9]+]]:_(s32) = G_SHL [[AND40]], [[C1]](s64)
    ; CHECK: [[ANYEXT5:%[0-9]+]]:_(s32) = G_ANYEXT [[UV5]](s8)
    ; CHECK: [[AND41:%[0-9]+]]:_(s32) = G_AND [[ANYEXT5]], [[C14]]
    ; CHECK: [[COPY104:%[0-9]+]]:_(s32) = COPY [[SHL35]](s32)
    ; CHECK: [[OR35:%[0-9]+]]:_(s32) = G_OR [[AND41]], [[COPY104]]
    ; CHECK: [[COPY105:%[0-9]+]]:_(s32) = COPY [[LSHR36]](s32)
    ; CHECK: [[AND42:%[0-9]+]]:_(s32) = G_AND [[COPY105]], [[C14]]
    ; CHECK: [[SHL36:%[0-9]+]]:_(s32) = G_SHL [[AND42]], [[C3]](s64)
    ; CHECK: [[COPY106:%[0-9]+]]:_(s32) = COPY [[OR35]](s32)
    ; CHECK: [[COPY107:%[0-9]+]]:_(s32) = COPY [[SHL36]](s32)
    ; CHECK: [[OR36:%[0-9]+]]:_(s32) = G_OR [[COPY106]], [[COPY107]]
    ; CHECK: [[COPY108:%[0-9]+]]:_(s32) = COPY [[LSHR37]](s32)
    ; CHECK: [[AND43:%[0-9]+]]:_(s32) = G_AND [[COPY108]], [[C14]]
    ; CHECK: [[SHL37:%[0-9]+]]:_(s32) = G_SHL [[AND43]], [[C5]](s64)
    ; CHECK: [[COPY109:%[0-9]+]]:_(s32) = COPY [[OR36]](s32)
    ; CHECK: [[COPY110:%[0-9]+]]:_(s32) = COPY [[SHL37]](s32)
    ; CHECK: [[OR37:%[0-9]+]]:_(s32) = G_OR [[COPY109]], [[COPY110]]
    ; CHECK: [[COPY111:%[0-9]+]]:_(s32) = COPY [[LSHR38]](s32)
    ; CHECK: [[AND44:%[0-9]+]]:_(s32) = G_AND [[COPY111]], [[C14]]
    ; CHECK: [[SHL38:%[0-9]+]]:_(s32) = G_SHL [[AND44]], [[C7]](s64)
    ; CHECK: [[COPY112:%[0-9]+]]:_(s32) = COPY [[OR37]](s32)
    ; CHECK: [[COPY113:%[0-9]+]]:_(s32) = COPY [[SHL38]](s32)
    ; CHECK: [[OR38:%[0-9]+]]:_(s32) = G_OR [[COPY112]], [[COPY113]]
    ; CHECK: [[COPY114:%[0-9]+]]:_(s32) = COPY [[LSHR39]](s32)
    ; CHECK: [[AND45:%[0-9]+]]:_(s32) = G_AND [[COPY114]], [[C14]]
    ; CHECK: [[SHL39:%[0-9]+]]:_(s32) = G_SHL [[AND45]], [[C9]](s64)
    ; CHECK: [[COPY115:%[0-9]+]]:_(s32) = COPY [[OR38]](s32)
    ; CHECK: [[COPY116:%[0-9]+]]:_(s32) = COPY [[SHL39]](s32)
    ; CHECK: [[OR39:%[0-9]+]]:_(s32) = G_OR [[COPY115]], [[COPY116]]
    ; CHECK: [[COPY117:%[0-9]+]]:_(s32) = COPY [[LSHR40]](s32)
    ; CHECK: [[AND46:%[0-9]+]]:_(s32) = G_AND [[COPY117]], [[C14]]
    ; CHECK: [[SHL40:%[0-9]+]]:_(s32) = G_SHL [[AND46]], [[C11]](s64)
    ; CHECK: [[COPY118:%[0-9]+]]:_(s32) = COPY [[OR39]](s32)
    ; CHECK: [[COPY119:%[0-9]+]]:_(s32) = COPY [[SHL40]](s32)
    ; CHECK: [[OR40:%[0-9]+]]:_(s32) = G_OR [[COPY118]], [[COPY119]]
    ; CHECK: [[COPY120:%[0-9]+]]:_(s32) = COPY [[LSHR41]](s32)
    ; CHECK: [[AND47:%[0-9]+]]:_(s32) = G_AND [[COPY120]], [[C14]]
    ; CHECK: [[SHL41:%[0-9]+]]:_(s32) = G_SHL [[AND47]], [[C13]](s64)
    ; CHECK: [[COPY121:%[0-9]+]]:_(s32) = COPY [[OR40]](s32)
    ; CHECK: [[COPY122:%[0-9]+]]:_(s32) = COPY [[SHL41]](s32)
    ; CHECK: [[OR41:%[0-9]+]]:_(s32) = G_OR [[COPY121]], [[COPY122]]
    ; CHECK: [[TRUNC5:%[0-9]+]]:_(s8) = G_TRUNC [[OR41]](s32)
    ; CHECK: [[COPY123:%[0-9]+]]:_(s32) = COPY [[LSHR42]](s32)
    ; CHECK: [[AND48:%[0-9]+]]:_(s32) = G_AND [[COPY123]], [[C14]]
    ; CHECK: [[SHL42:%[0-9]+]]:_(s32) = G_SHL [[AND48]], [[C1]](s64)
    ; CHECK: [[ANYEXT6:%[0-9]+]]:_(s32) = G_ANYEXT [[UV6]](s8)
    ; CHECK: [[AND49:%[0-9]+]]:_(s32) = G_AND [[ANYEXT6]], [[C14]]
    ; CHECK: [[COPY124:%[0-9]+]]:_(s32) = COPY [[SHL42]](s32)
    ; CHECK: [[OR42:%[0-9]+]]:_(s32) = G_OR [[AND49]], [[COPY124]]
    ; CHECK: [[COPY125:%[0-9]+]]:_(s32) = COPY [[LSHR43]](s32)
    ; CHECK: [[AND50:%[0-9]+]]:_(s32) = G_AND [[COPY125]], [[C14]]
    ; CHECK: [[SHL43:%[0-9]+]]:_(s32) = G_SHL [[AND50]], [[C3]](s64)
    ; CHECK: [[COPY126:%[0-9]+]]:_(s32) = COPY [[OR42]](s32)
    ; CHECK: [[COPY127:%[0-9]+]]:_(s32) = COPY [[SHL43]](s32)
    ; CHECK: [[OR43:%[0-9]+]]:_(s32) = G_OR [[COPY126]], [[COPY127]]
    ; CHECK: [[COPY128:%[0-9]+]]:_(s32) = COPY [[LSHR44]](s32)
    ; CHECK: [[AND51:%[0-9]+]]:_(s32) = G_AND [[COPY128]], [[C14]]
    ; CHECK: [[SHL44:%[0-9]+]]:_(s32) = G_SHL [[AND51]], [[C5]](s64)
    ; CHECK: [[COPY129:%[0-9]+]]:_(s32) = COPY [[OR43]](s32)
    ; CHECK: [[COPY130:%[0-9]+]]:_(s32) = COPY [[SHL44]](s32)
    ; CHECK: [[OR44:%[0-9]+]]:_(s32) = G_OR [[COPY129]], [[COPY130]]
    ; CHECK: [[COPY131:%[0-9]+]]:_(s32) = COPY [[LSHR45]](s32)
    ; CHECK: [[AND52:%[0-9]+]]:_(s32) = G_AND [[COPY131]], [[C14]]
    ; CHECK: [[SHL45:%[0-9]+]]:_(s32) = G_SHL [[AND52]], [[C7]](s64)
    ; CHECK: [[COPY132:%[0-9]+]]:_(s32) = COPY [[OR44]](s32)
    ; CHECK: [[COPY133:%[0-9]+]]:_(s32) = COPY [[SHL45]](s32)
    ; CHECK: [[OR45:%[0-9]+]]:_(s32) = G_OR [[COPY132]], [[COPY133]]
    ; CHECK: [[COPY134:%[0-9]+]]:_(s32) = COPY [[LSHR46]](s32)
    ; CHECK: [[AND53:%[0-9]+]]:_(s32) = G_AND [[COPY134]], [[C14]]
    ; CHECK: [[SHL46:%[0-9]+]]:_(s32) = G_SHL [[AND53]], [[C9]](s64)
    ; CHECK: [[COPY135:%[0-9]+]]:_(s32) = COPY [[OR45]](s32)
    ; CHECK: [[COPY136:%[0-9]+]]:_(s32) = COPY [[SHL46]](s32)
    ; CHECK: [[OR46:%[0-9]+]]:_(s32) = G_OR [[COPY135]], [[COPY136]]
    ; CHECK: [[COPY137:%[0-9]+]]:_(s32) = COPY [[LSHR47]](s32)
    ; CHECK: [[AND54:%[0-9]+]]:_(s32) = G_AND [[COPY137]], [[C14]]
    ; CHECK: [[SHL47:%[0-9]+]]:_(s32) = G_SHL [[AND54]], [[C11]](s64)
    ; CHECK: [[COPY138:%[0-9]+]]:_(s32) = COPY [[OR46]](s32)
    ; CHECK: [[COPY139:%[0-9]+]]:_(s32) = COPY [[SHL47]](s32)
    ; CHECK: [[OR47:%[0-9]+]]:_(s32) = G_OR [[COPY138]], [[COPY139]]
    ; CHECK: [[COPY140:%[0-9]+]]:_(s32) = COPY [[LSHR48]](s32)
    ; CHECK: [[AND55:%[0-9]+]]:_(s32) = G_AND [[COPY140]], [[C14]]
    ; CHECK: [[SHL48:%[0-9]+]]:_(s32) = G_SHL [[AND55]], [[C13]](s64)
    ; CHECK: [[COPY141:%[0-9]+]]:_(s32) = COPY [[OR47]](s32)
    ; CHECK: [[COPY142:%[0-9]+]]:_(s32) = COPY [[SHL48]](s32)
    ; CHECK: [[OR48:%[0-9]+]]:_(s32) = G_OR [[COPY141]], [[COPY142]]
    ; CHECK: [[TRUNC6:%[0-9]+]]:_(s8) = G_TRUNC [[OR48]](s32)
    ; CHECK: [[COPY143:%[0-9]+]]:_(s32) = COPY [[LSHR49]](s32)
    ; CHECK: [[AND56:%[0-9]+]]:_(s32) = G_AND [[COPY143]], [[C14]]
    ; CHECK: [[SHL49:%[0-9]+]]:_(s32) = G_SHL [[AND56]], [[C1]](s64)
    ; CHECK: [[ANYEXT7:%[0-9]+]]:_(s32) = G_ANYEXT [[UV7]](s8)
    ; CHECK: [[AND57:%[0-9]+]]:_(s32) = G_AND [[ANYEXT7]], [[C14]]
    ; CHECK: [[COPY144:%[0-9]+]]:_(s32) = COPY [[SHL49]](s32)
    ; CHECK: [[OR49:%[0-9]+]]:_(s32) = G_OR [[AND57]], [[COPY144]]
    ; CHECK: [[COPY145:%[0-9]+]]:_(s32) = COPY [[LSHR50]](s32)
    ; CHECK: [[AND58:%[0-9]+]]:_(s32) = G_AND [[COPY145]], [[C14]]
    ; CHECK: [[SHL50:%[0-9]+]]:_(s32) = G_SHL [[AND58]], [[C3]](s64)
    ; CHECK: [[COPY146:%[0-9]+]]:_(s32) = COPY [[OR49]](s32)
    ; CHECK: [[COPY147:%[0-9]+]]:_(s32) = COPY [[SHL50]](s32)
    ; CHECK: [[OR50:%[0-9]+]]:_(s32) = G_OR [[COPY146]], [[COPY147]]
    ; CHECK: [[COPY148:%[0-9]+]]:_(s32) = COPY [[LSHR51]](s32)
    ; CHECK: [[AND59:%[0-9]+]]:_(s32) = G_AND [[COPY148]], [[C14]]
    ; CHECK: [[SHL51:%[0-9]+]]:_(s32) = G_SHL [[AND59]], [[C5]](s64)
    ; CHECK: [[COPY149:%[0-9]+]]:_(s32) = COPY [[OR50]](s32)
    ; CHECK: [[COPY150:%[0-9]+]]:_(s32) = COPY [[SHL51]](s32)
    ; CHECK: [[OR51:%[0-9]+]]:_(s32) = G_OR [[COPY149]], [[COPY150]]
    ; CHECK: [[COPY151:%[0-9]+]]:_(s32) = COPY [[LSHR52]](s32)
    ; CHECK: [[AND60:%[0-9]+]]:_(s32) = G_AND [[COPY151]], [[C14]]
    ; CHECK: [[SHL52:%[0-9]+]]:_(s32) = G_SHL [[AND60]], [[C7]](s64)
    ; CHECK: [[COPY152:%[0-9]+]]:_(s32) = COPY [[OR51]](s32)
    ; CHECK: [[COPY153:%[0-9]+]]:_(s32) = COPY [[SHL52]](s32)
    ; CHECK: [[OR52:%[0-9]+]]:_(s32) = G_OR [[COPY152]], [[COPY153]]
    ; CHECK: [[COPY154:%[0-9]+]]:_(s32) = COPY [[LSHR53]](s32)
    ; CHECK: [[AND61:%[0-9]+]]:_(s32) = G_AND [[COPY154]], [[C14]]
    ; CHECK: [[SHL53:%[0-9]+]]:_(s32) = G_SHL [[AND61]], [[C9]](s64)
    ; CHECK: [[COPY155:%[0-9]+]]:_(s32) = COPY [[OR52]](s32)
    ; CHECK: [[COPY156:%[0-9]+]]:_(s32) = COPY [[SHL53]](s32)
    ; CHECK: [[OR53:%[0-9]+]]:_(s32) = G_OR [[COPY155]], [[COPY156]]
    ; CHECK: [[COPY157:%[0-9]+]]:_(s32) = COPY [[LSHR54]](s32)
    ; CHECK: [[AND62:%[0-9]+]]:_(s32) = G_AND [[COPY157]], [[C14]]
    ; CHECK: [[SHL54:%[0-9]+]]:_(s32) = G_SHL [[AND62]], [[C11]](s64)
    ; CHECK: [[COPY158:%[0-9]+]]:_(s32) = COPY [[OR53]](s32)
    ; CHECK: [[COPY159:%[0-9]+]]:_(s32) = COPY [[SHL54]](s32)
    ; CHECK: [[OR54:%[0-9]+]]:_(s32) = G_OR [[COPY158]], [[COPY159]]
    ; CHECK: [[COPY160:%[0-9]+]]:_(s32) = COPY [[LSHR55]](s32)
    ; CHECK: [[AND63:%[0-9]+]]:_(s32) = G_AND [[COPY160]], [[C14]]
    ; CHECK: [[SHL55:%[0-9]+]]:_(s32) = G_SHL [[AND63]], [[C13]](s64)
    ; CHECK: [[COPY161:%[0-9]+]]:_(s32) = COPY [[OR54]](s32)
    ; CHECK: [[COPY162:%[0-9]+]]:_(s32) = COPY [[SHL55]](s32)
    ; CHECK: [[OR55:%[0-9]+]]:_(s32) = G_OR [[COPY161]], [[COPY162]]
    ; CHECK: [[TRUNC7:%[0-9]+]]:_(s8) = G_TRUNC [[OR55]](s32)
    ; CHECK: [[MV:%[0-9]+]]:_(s64) = G_MERGE_VALUES [[TRUNC]](s8), [[TRUNC1]](s8), [[TRUNC2]](s8), [[TRUNC3]](s8), [[TRUNC4]](s8), [[TRUNC5]](s8), [[TRUNC6]](s8), [[TRUNC7]](s8)
    ; CHECK: [[C15:%[0-9]+]]:_(s32) = G_CONSTANT i32 0
    ; CHECK: [[COPY163:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL56:%[0-9]+]]:_(s32) = G_SHL [[COPY163]], [[C1]](s64)
    ; CHECK: [[TRUNC8:%[0-9]+]]:_(s32) = G_TRUNC [[COPY2]](s64)
    ; CHECK: [[AND64:%[0-9]+]]:_(s32) = G_AND [[TRUNC8]], [[C14]]
    ; CHECK: [[COPY164:%[0-9]+]]:_(s32) = COPY [[SHL56]](s32)
    ; CHECK: [[OR56:%[0-9]+]]:_(s32) = G_OR [[AND64]], [[COPY164]]
    ; CHECK: [[COPY165:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL57:%[0-9]+]]:_(s32) = G_SHL [[COPY165]], [[C3]](s64)
    ; CHECK: [[COPY166:%[0-9]+]]:_(s32) = COPY [[OR56]](s32)
    ; CHECK: [[COPY167:%[0-9]+]]:_(s32) = COPY [[SHL57]](s32)
    ; CHECK: [[OR57:%[0-9]+]]:_(s32) = G_OR [[COPY166]], [[COPY167]]
    ; CHECK: [[COPY168:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL58:%[0-9]+]]:_(s32) = G_SHL [[COPY168]], [[C5]](s64)
    ; CHECK: [[COPY169:%[0-9]+]]:_(s32) = COPY [[OR57]](s32)
    ; CHECK: [[COPY170:%[0-9]+]]:_(s32) = COPY [[SHL58]](s32)
    ; CHECK: [[OR58:%[0-9]+]]:_(s32) = G_OR [[COPY169]], [[COPY170]]
    ; CHECK: [[COPY171:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL59:%[0-9]+]]:_(s32) = G_SHL [[COPY171]], [[C7]](s64)
    ; CHECK: [[COPY172:%[0-9]+]]:_(s32) = COPY [[OR58]](s32)
    ; CHECK: [[COPY173:%[0-9]+]]:_(s32) = COPY [[SHL59]](s32)
    ; CHECK: [[OR59:%[0-9]+]]:_(s32) = G_OR [[COPY172]], [[COPY173]]
    ; CHECK: [[COPY174:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL60:%[0-9]+]]:_(s32) = G_SHL [[COPY174]], [[C9]](s64)
    ; CHECK: [[COPY175:%[0-9]+]]:_(s32) = COPY [[OR59]](s32)
    ; CHECK: [[COPY176:%[0-9]+]]:_(s32) = COPY [[SHL60]](s32)
    ; CHECK: [[OR60:%[0-9]+]]:_(s32) = G_OR [[COPY175]], [[COPY176]]
    ; CHECK: [[COPY177:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL61:%[0-9]+]]:_(s32) = G_SHL [[COPY177]], [[C11]](s64)
    ; CHECK: [[COPY178:%[0-9]+]]:_(s32) = COPY [[OR60]](s32)
    ; CHECK: [[COPY179:%[0-9]+]]:_(s32) = COPY [[SHL61]](s32)
    ; CHECK: [[OR61:%[0-9]+]]:_(s32) = G_OR [[COPY178]], [[COPY179]]
    ; CHECK: [[COPY180:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL62:%[0-9]+]]:_(s32) = G_SHL [[COPY180]], [[C13]](s64)
    ; CHECK: [[COPY181:%[0-9]+]]:_(s32) = COPY [[OR61]](s32)
    ; CHECK: [[COPY182:%[0-9]+]]:_(s32) = COPY [[SHL62]](s32)
    ; CHECK: [[OR62:%[0-9]+]]:_(s32) = G_OR [[COPY181]], [[COPY182]]
    ; CHECK: [[TRUNC9:%[0-9]+]]:_(s8) = G_TRUNC [[OR62]](s32)
    ; CHECK: [[COPY183:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL63:%[0-9]+]]:_(s32) = G_SHL [[COPY183]], [[C1]](s64)
    ; CHECK: [[COPY184:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[COPY185:%[0-9]+]]:_(s32) = COPY [[SHL63]](s32)
    ; CHECK: [[OR63:%[0-9]+]]:_(s32) = G_OR [[COPY184]], [[COPY185]]
    ; CHECK: [[COPY186:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL64:%[0-9]+]]:_(s32) = G_SHL [[COPY186]], [[C3]](s64)
    ; CHECK: [[COPY187:%[0-9]+]]:_(s32) = COPY [[OR63]](s32)
    ; CHECK: [[COPY188:%[0-9]+]]:_(s32) = COPY [[SHL64]](s32)
    ; CHECK: [[OR64:%[0-9]+]]:_(s32) = G_OR [[COPY187]], [[COPY188]]
    ; CHECK: [[COPY189:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL65:%[0-9]+]]:_(s32) = G_SHL [[COPY189]], [[C5]](s64)
    ; CHECK: [[COPY190:%[0-9]+]]:_(s32) = COPY [[OR64]](s32)
    ; CHECK: [[COPY191:%[0-9]+]]:_(s32) = COPY [[SHL65]](s32)
    ; CHECK: [[OR65:%[0-9]+]]:_(s32) = G_OR [[COPY190]], [[COPY191]]
    ; CHECK: [[COPY192:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL66:%[0-9]+]]:_(s32) = G_SHL [[COPY192]], [[C7]](s64)
    ; CHECK: [[COPY193:%[0-9]+]]:_(s32) = COPY [[OR65]](s32)
    ; CHECK: [[COPY194:%[0-9]+]]:_(s32) = COPY [[SHL66]](s32)
    ; CHECK: [[OR66:%[0-9]+]]:_(s32) = G_OR [[COPY193]], [[COPY194]]
    ; CHECK: [[COPY195:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL67:%[0-9]+]]:_(s32) = G_SHL [[COPY195]], [[C9]](s64)
    ; CHECK: [[COPY196:%[0-9]+]]:_(s32) = COPY [[OR66]](s32)
    ; CHECK: [[COPY197:%[0-9]+]]:_(s32) = COPY [[SHL67]](s32)
    ; CHECK: [[OR67:%[0-9]+]]:_(s32) = G_OR [[COPY196]], [[COPY197]]
    ; CHECK: [[COPY198:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL68:%[0-9]+]]:_(s32) = G_SHL [[COPY198]], [[C11]](s64)
    ; CHECK: [[COPY199:%[0-9]+]]:_(s32) = COPY [[OR67]](s32)
    ; CHECK: [[COPY200:%[0-9]+]]:_(s32) = COPY [[SHL68]](s32)
    ; CHECK: [[OR68:%[0-9]+]]:_(s32) = G_OR [[COPY199]], [[COPY200]]
    ; CHECK: [[COPY201:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL69:%[0-9]+]]:_(s32) = G_SHL [[COPY201]], [[C13]](s64)
    ; CHECK: [[COPY202:%[0-9]+]]:_(s32) = COPY [[OR68]](s32)
    ; CHECK: [[COPY203:%[0-9]+]]:_(s32) = COPY [[SHL69]](s32)
    ; CHECK: [[OR69:%[0-9]+]]:_(s32) = G_OR [[COPY202]], [[COPY203]]
    ; CHECK: [[TRUNC10:%[0-9]+]]:_(s8) = G_TRUNC [[OR69]](s32)
    ; CHECK: [[COPY204:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL70:%[0-9]+]]:_(s32) = G_SHL [[COPY204]], [[C1]](s64)
    ; CHECK: [[COPY205:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[COPY206:%[0-9]+]]:_(s32) = COPY [[SHL70]](s32)
    ; CHECK: [[OR70:%[0-9]+]]:_(s32) = G_OR [[COPY205]], [[COPY206]]
    ; CHECK: [[COPY207:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL71:%[0-9]+]]:_(s32) = G_SHL [[COPY207]], [[C3]](s64)
    ; CHECK: [[COPY208:%[0-9]+]]:_(s32) = COPY [[OR70]](s32)
    ; CHECK: [[COPY209:%[0-9]+]]:_(s32) = COPY [[SHL71]](s32)
    ; CHECK: [[OR71:%[0-9]+]]:_(s32) = G_OR [[COPY208]], [[COPY209]]
    ; CHECK: [[COPY210:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL72:%[0-9]+]]:_(s32) = G_SHL [[COPY210]], [[C5]](s64)
    ; CHECK: [[COPY211:%[0-9]+]]:_(s32) = COPY [[OR71]](s32)
    ; CHECK: [[COPY212:%[0-9]+]]:_(s32) = COPY [[SHL72]](s32)
    ; CHECK: [[OR72:%[0-9]+]]:_(s32) = G_OR [[COPY211]], [[COPY212]]
    ; CHECK: [[COPY213:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL73:%[0-9]+]]:_(s32) = G_SHL [[COPY213]], [[C7]](s64)
    ; CHECK: [[COPY214:%[0-9]+]]:_(s32) = COPY [[OR72]](s32)
    ; CHECK: [[COPY215:%[0-9]+]]:_(s32) = COPY [[SHL73]](s32)
    ; CHECK: [[OR73:%[0-9]+]]:_(s32) = G_OR [[COPY214]], [[COPY215]]
    ; CHECK: [[COPY216:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL74:%[0-9]+]]:_(s32) = G_SHL [[COPY216]], [[C9]](s64)
    ; CHECK: [[COPY217:%[0-9]+]]:_(s32) = COPY [[OR73]](s32)
    ; CHECK: [[COPY218:%[0-9]+]]:_(s32) = COPY [[SHL74]](s32)
    ; CHECK: [[OR74:%[0-9]+]]:_(s32) = G_OR [[COPY217]], [[COPY218]]
    ; CHECK: [[COPY219:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL75:%[0-9]+]]:_(s32) = G_SHL [[COPY219]], [[C11]](s64)
    ; CHECK: [[COPY220:%[0-9]+]]:_(s32) = COPY [[OR74]](s32)
    ; CHECK: [[COPY221:%[0-9]+]]:_(s32) = COPY [[SHL75]](s32)
    ; CHECK: [[OR75:%[0-9]+]]:_(s32) = G_OR [[COPY220]], [[COPY221]]
    ; CHECK: [[COPY222:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL76:%[0-9]+]]:_(s32) = G_SHL [[COPY222]], [[C13]](s64)
    ; CHECK: [[COPY223:%[0-9]+]]:_(s32) = COPY [[OR75]](s32)
    ; CHECK: [[COPY224:%[0-9]+]]:_(s32) = COPY [[SHL76]](s32)
    ; CHECK: [[OR76:%[0-9]+]]:_(s32) = G_OR [[COPY223]], [[COPY224]]
    ; CHECK: [[TRUNC11:%[0-9]+]]:_(s8) = G_TRUNC [[OR76]](s32)
    ; CHECK: [[COPY225:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL77:%[0-9]+]]:_(s32) = G_SHL [[COPY225]], [[C1]](s64)
    ; CHECK: [[COPY226:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[COPY227:%[0-9]+]]:_(s32) = COPY [[SHL77]](s32)
    ; CHECK: [[OR77:%[0-9]+]]:_(s32) = G_OR [[COPY226]], [[COPY227]]
    ; CHECK: [[COPY228:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL78:%[0-9]+]]:_(s32) = G_SHL [[COPY228]], [[C3]](s64)
    ; CHECK: [[COPY229:%[0-9]+]]:_(s32) = COPY [[OR77]](s32)
    ; CHECK: [[COPY230:%[0-9]+]]:_(s32) = COPY [[SHL78]](s32)
    ; CHECK: [[OR78:%[0-9]+]]:_(s32) = G_OR [[COPY229]], [[COPY230]]
    ; CHECK: [[COPY231:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL79:%[0-9]+]]:_(s32) = G_SHL [[COPY231]], [[C5]](s64)
    ; CHECK: [[COPY232:%[0-9]+]]:_(s32) = COPY [[OR78]](s32)
    ; CHECK: [[COPY233:%[0-9]+]]:_(s32) = COPY [[SHL79]](s32)
    ; CHECK: [[OR79:%[0-9]+]]:_(s32) = G_OR [[COPY232]], [[COPY233]]
    ; CHECK: [[COPY234:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL80:%[0-9]+]]:_(s32) = G_SHL [[COPY234]], [[C7]](s64)
    ; CHECK: [[COPY235:%[0-9]+]]:_(s32) = COPY [[OR79]](s32)
    ; CHECK: [[COPY236:%[0-9]+]]:_(s32) = COPY [[SHL80]](s32)
    ; CHECK: [[OR80:%[0-9]+]]:_(s32) = G_OR [[COPY235]], [[COPY236]]
    ; CHECK: [[COPY237:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL81:%[0-9]+]]:_(s32) = G_SHL [[COPY237]], [[C9]](s64)
    ; CHECK: [[COPY238:%[0-9]+]]:_(s32) = COPY [[OR80]](s32)
    ; CHECK: [[COPY239:%[0-9]+]]:_(s32) = COPY [[SHL81]](s32)
    ; CHECK: [[OR81:%[0-9]+]]:_(s32) = G_OR [[COPY238]], [[COPY239]]
    ; CHECK: [[COPY240:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL82:%[0-9]+]]:_(s32) = G_SHL [[COPY240]], [[C11]](s64)
    ; CHECK: [[COPY241:%[0-9]+]]:_(s32) = COPY [[OR81]](s32)
    ; CHECK: [[COPY242:%[0-9]+]]:_(s32) = COPY [[SHL82]](s32)
    ; CHECK: [[OR82:%[0-9]+]]:_(s32) = G_OR [[COPY241]], [[COPY242]]
    ; CHECK: [[COPY243:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL83:%[0-9]+]]:_(s32) = G_SHL [[COPY243]], [[C13]](s64)
    ; CHECK: [[COPY244:%[0-9]+]]:_(s32) = COPY [[OR82]](s32)
    ; CHECK: [[COPY245:%[0-9]+]]:_(s32) = COPY [[SHL83]](s32)
    ; CHECK: [[OR83:%[0-9]+]]:_(s32) = G_OR [[COPY244]], [[COPY245]]
    ; CHECK: [[TRUNC12:%[0-9]+]]:_(s8) = G_TRUNC [[OR83]](s32)
    ; CHECK: [[COPY246:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL84:%[0-9]+]]:_(s32) = G_SHL [[COPY246]], [[C1]](s64)
    ; CHECK: [[COPY247:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[COPY248:%[0-9]+]]:_(s32) = COPY [[SHL84]](s32)
    ; CHECK: [[OR84:%[0-9]+]]:_(s32) = G_OR [[COPY247]], [[COPY248]]
    ; CHECK: [[COPY249:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL85:%[0-9]+]]:_(s32) = G_SHL [[COPY249]], [[C3]](s64)
    ; CHECK: [[COPY250:%[0-9]+]]:_(s32) = COPY [[OR84]](s32)
    ; CHECK: [[COPY251:%[0-9]+]]:_(s32) = COPY [[SHL85]](s32)
    ; CHECK: [[OR85:%[0-9]+]]:_(s32) = G_OR [[COPY250]], [[COPY251]]
    ; CHECK: [[COPY252:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL86:%[0-9]+]]:_(s32) = G_SHL [[COPY252]], [[C5]](s64)
    ; CHECK: [[COPY253:%[0-9]+]]:_(s32) = COPY [[OR85]](s32)
    ; CHECK: [[COPY254:%[0-9]+]]:_(s32) = COPY [[SHL86]](s32)
    ; CHECK: [[OR86:%[0-9]+]]:_(s32) = G_OR [[COPY253]], [[COPY254]]
    ; CHECK: [[COPY255:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL87:%[0-9]+]]:_(s32) = G_SHL [[COPY255]], [[C7]](s64)
    ; CHECK: [[COPY256:%[0-9]+]]:_(s32) = COPY [[OR86]](s32)
    ; CHECK: [[COPY257:%[0-9]+]]:_(s32) = COPY [[SHL87]](s32)
    ; CHECK: [[OR87:%[0-9]+]]:_(s32) = G_OR [[COPY256]], [[COPY257]]
    ; CHECK: [[COPY258:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL88:%[0-9]+]]:_(s32) = G_SHL [[COPY258]], [[C9]](s64)
    ; CHECK: [[COPY259:%[0-9]+]]:_(s32) = COPY [[OR87]](s32)
    ; CHECK: [[COPY260:%[0-9]+]]:_(s32) = COPY [[SHL88]](s32)
    ; CHECK: [[OR88:%[0-9]+]]:_(s32) = G_OR [[COPY259]], [[COPY260]]
    ; CHECK: [[COPY261:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL89:%[0-9]+]]:_(s32) = G_SHL [[COPY261]], [[C11]](s64)
    ; CHECK: [[COPY262:%[0-9]+]]:_(s32) = COPY [[OR88]](s32)
    ; CHECK: [[COPY263:%[0-9]+]]:_(s32) = COPY [[SHL89]](s32)
    ; CHECK: [[OR89:%[0-9]+]]:_(s32) = G_OR [[COPY262]], [[COPY263]]
    ; CHECK: [[COPY264:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL90:%[0-9]+]]:_(s32) = G_SHL [[COPY264]], [[C13]](s64)
    ; CHECK: [[COPY265:%[0-9]+]]:_(s32) = COPY [[OR89]](s32)
    ; CHECK: [[COPY266:%[0-9]+]]:_(s32) = COPY [[SHL90]](s32)
    ; CHECK: [[OR90:%[0-9]+]]:_(s32) = G_OR [[COPY265]], [[COPY266]]
    ; CHECK: [[TRUNC13:%[0-9]+]]:_(s8) = G_TRUNC [[OR90]](s32)
    ; CHECK: [[COPY267:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL91:%[0-9]+]]:_(s32) = G_SHL [[COPY267]], [[C1]](s64)
    ; CHECK: [[COPY268:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[COPY269:%[0-9]+]]:_(s32) = COPY [[SHL91]](s32)
    ; CHECK: [[OR91:%[0-9]+]]:_(s32) = G_OR [[COPY268]], [[COPY269]]
    ; CHECK: [[COPY270:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL92:%[0-9]+]]:_(s32) = G_SHL [[COPY270]], [[C3]](s64)
    ; CHECK: [[COPY271:%[0-9]+]]:_(s32) = COPY [[OR91]](s32)
    ; CHECK: [[COPY272:%[0-9]+]]:_(s32) = COPY [[SHL92]](s32)
    ; CHECK: [[OR92:%[0-9]+]]:_(s32) = G_OR [[COPY271]], [[COPY272]]
    ; CHECK: [[COPY273:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL93:%[0-9]+]]:_(s32) = G_SHL [[COPY273]], [[C5]](s64)
    ; CHECK: [[COPY274:%[0-9]+]]:_(s32) = COPY [[OR92]](s32)
    ; CHECK: [[COPY275:%[0-9]+]]:_(s32) = COPY [[SHL93]](s32)
    ; CHECK: [[OR93:%[0-9]+]]:_(s32) = G_OR [[COPY274]], [[COPY275]]
    ; CHECK: [[COPY276:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL94:%[0-9]+]]:_(s32) = G_SHL [[COPY276]], [[C7]](s64)
    ; CHECK: [[COPY277:%[0-9]+]]:_(s32) = COPY [[OR93]](s32)
    ; CHECK: [[COPY278:%[0-9]+]]:_(s32) = COPY [[SHL94]](s32)
    ; CHECK: [[OR94:%[0-9]+]]:_(s32) = G_OR [[COPY277]], [[COPY278]]
    ; CHECK: [[COPY279:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL95:%[0-9]+]]:_(s32) = G_SHL [[COPY279]], [[C9]](s64)
    ; CHECK: [[COPY280:%[0-9]+]]:_(s32) = COPY [[OR94]](s32)
    ; CHECK: [[COPY281:%[0-9]+]]:_(s32) = COPY [[SHL95]](s32)
    ; CHECK: [[OR95:%[0-9]+]]:_(s32) = G_OR [[COPY280]], [[COPY281]]
    ; CHECK: [[COPY282:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL96:%[0-9]+]]:_(s32) = G_SHL [[COPY282]], [[C11]](s64)
    ; CHECK: [[COPY283:%[0-9]+]]:_(s32) = COPY [[OR95]](s32)
    ; CHECK: [[COPY284:%[0-9]+]]:_(s32) = COPY [[SHL96]](s32)
    ; CHECK: [[OR96:%[0-9]+]]:_(s32) = G_OR [[COPY283]], [[COPY284]]
    ; CHECK: [[COPY285:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL97:%[0-9]+]]:_(s32) = G_SHL [[COPY285]], [[C13]](s64)
    ; CHECK: [[COPY286:%[0-9]+]]:_(s32) = COPY [[OR96]](s32)
    ; CHECK: [[COPY287:%[0-9]+]]:_(s32) = COPY [[SHL97]](s32)
    ; CHECK: [[OR97:%[0-9]+]]:_(s32) = G_OR [[COPY286]], [[COPY287]]
    ; CHECK: [[TRUNC14:%[0-9]+]]:_(s8) = G_TRUNC [[OR97]](s32)
    ; CHECK: [[COPY288:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL98:%[0-9]+]]:_(s32) = G_SHL [[COPY288]], [[C1]](s64)
    ; CHECK: [[COPY289:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[COPY290:%[0-9]+]]:_(s32) = COPY [[SHL98]](s32)
    ; CHECK: [[OR98:%[0-9]+]]:_(s32) = G_OR [[COPY289]], [[COPY290]]
    ; CHECK: [[COPY291:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL99:%[0-9]+]]:_(s32) = G_SHL [[COPY291]], [[C3]](s64)
    ; CHECK: [[COPY292:%[0-9]+]]:_(s32) = COPY [[OR98]](s32)
    ; CHECK: [[COPY293:%[0-9]+]]:_(s32) = COPY [[SHL99]](s32)
    ; CHECK: [[OR99:%[0-9]+]]:_(s32) = G_OR [[COPY292]], [[COPY293]]
    ; CHECK: [[COPY294:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL100:%[0-9]+]]:_(s32) = G_SHL [[COPY294]], [[C5]](s64)
    ; CHECK: [[COPY295:%[0-9]+]]:_(s32) = COPY [[OR99]](s32)
    ; CHECK: [[COPY296:%[0-9]+]]:_(s32) = COPY [[SHL100]](s32)
    ; CHECK: [[OR100:%[0-9]+]]:_(s32) = G_OR [[COPY295]], [[COPY296]]
    ; CHECK: [[COPY297:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL101:%[0-9]+]]:_(s32) = G_SHL [[COPY297]], [[C7]](s64)
    ; CHECK: [[COPY298:%[0-9]+]]:_(s32) = COPY [[OR100]](s32)
    ; CHECK: [[COPY299:%[0-9]+]]:_(s32) = COPY [[SHL101]](s32)
    ; CHECK: [[OR101:%[0-9]+]]:_(s32) = G_OR [[COPY298]], [[COPY299]]
    ; CHECK: [[COPY300:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL102:%[0-9]+]]:_(s32) = G_SHL [[COPY300]], [[C9]](s64)
    ; CHECK: [[COPY301:%[0-9]+]]:_(s32) = COPY [[OR101]](s32)
    ; CHECK: [[COPY302:%[0-9]+]]:_(s32) = COPY [[SHL102]](s32)
    ; CHECK: [[OR102:%[0-9]+]]:_(s32) = G_OR [[COPY301]], [[COPY302]]
    ; CHECK: [[COPY303:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL103:%[0-9]+]]:_(s32) = G_SHL [[COPY303]], [[C11]](s64)
    ; CHECK: [[COPY304:%[0-9]+]]:_(s32) = COPY [[OR102]](s32)
    ; CHECK: [[COPY305:%[0-9]+]]:_(s32) = COPY [[SHL103]](s32)
    ; CHECK: [[OR103:%[0-9]+]]:_(s32) = G_OR [[COPY304]], [[COPY305]]
    ; CHECK: [[COPY306:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL104:%[0-9]+]]:_(s32) = G_SHL [[COPY306]], [[C13]](s64)
    ; CHECK: [[COPY307:%[0-9]+]]:_(s32) = COPY [[OR103]](s32)
    ; CHECK: [[COPY308:%[0-9]+]]:_(s32) = COPY [[SHL104]](s32)
    ; CHECK: [[OR104:%[0-9]+]]:_(s32) = G_OR [[COPY307]], [[COPY308]]
    ; CHECK: [[TRUNC15:%[0-9]+]]:_(s8) = G_TRUNC [[OR104]](s32)
    ; CHECK: [[SHL105:%[0-9]+]]:_(s32) = G_SHL [[C15]], [[C1]](s64)
    ; CHECK: [[COPY309:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[COPY310:%[0-9]+]]:_(s32) = COPY [[SHL105]](s32)
    ; CHECK: [[OR105:%[0-9]+]]:_(s32) = G_OR [[COPY309]], [[COPY310]]
    ; CHECK: [[COPY311:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL106:%[0-9]+]]:_(s32) = G_SHL [[COPY311]], [[C3]](s64)
    ; CHECK: [[COPY312:%[0-9]+]]:_(s32) = COPY [[OR105]](s32)
    ; CHECK: [[COPY313:%[0-9]+]]:_(s32) = COPY [[SHL106]](s32)
    ; CHECK: [[OR106:%[0-9]+]]:_(s32) = G_OR [[COPY312]], [[COPY313]]
    ; CHECK: [[COPY314:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL107:%[0-9]+]]:_(s32) = G_SHL [[COPY314]], [[C5]](s64)
    ; CHECK: [[COPY315:%[0-9]+]]:_(s32) = COPY [[OR106]](s32)
    ; CHECK: [[COPY316:%[0-9]+]]:_(s32) = COPY [[SHL107]](s32)
    ; CHECK: [[OR107:%[0-9]+]]:_(s32) = G_OR [[COPY315]], [[COPY316]]
    ; CHECK: [[COPY317:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL108:%[0-9]+]]:_(s32) = G_SHL [[COPY317]], [[C7]](s64)
    ; CHECK: [[COPY318:%[0-9]+]]:_(s32) = COPY [[OR107]](s32)
    ; CHECK: [[COPY319:%[0-9]+]]:_(s32) = COPY [[SHL108]](s32)
    ; CHECK: [[OR108:%[0-9]+]]:_(s32) = G_OR [[COPY318]], [[COPY319]]
    ; CHECK: [[COPY320:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL109:%[0-9]+]]:_(s32) = G_SHL [[COPY320]], [[C9]](s64)
    ; CHECK: [[COPY321:%[0-9]+]]:_(s32) = COPY [[OR108]](s32)
    ; CHECK: [[COPY322:%[0-9]+]]:_(s32) = COPY [[SHL109]](s32)
    ; CHECK: [[OR109:%[0-9]+]]:_(s32) = G_OR [[COPY321]], [[COPY322]]
    ; CHECK: [[COPY323:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL110:%[0-9]+]]:_(s32) = G_SHL [[COPY323]], [[C11]](s64)
    ; CHECK: [[COPY324:%[0-9]+]]:_(s32) = COPY [[OR109]](s32)
    ; CHECK: [[COPY325:%[0-9]+]]:_(s32) = COPY [[SHL110]](s32)
    ; CHECK: [[OR110:%[0-9]+]]:_(s32) = G_OR [[COPY324]], [[COPY325]]
    ; CHECK: [[COPY326:%[0-9]+]]:_(s32) = COPY [[C15]](s32)
    ; CHECK: [[SHL111:%[0-9]+]]:_(s32) = G_SHL [[COPY326]], [[C13]](s64)
    ; CHECK: [[COPY327:%[0-9]+]]:_(s32) = COPY [[OR110]](s32)
    ; CHECK: [[COPY328:%[0-9]+]]:_(s32) = COPY [[SHL111]](s32)
    ; CHECK: [[OR111:%[0-9]+]]:_(s32) = G_OR [[COPY327]], [[COPY328]]
    ; CHECK: [[TRUNC16:%[0-9]+]]:_(s8) = G_TRUNC [[OR111]](s32)
    ; CHECK: [[MV1:%[0-9]+]]:_(s64) = G_MERGE_VALUES [[TRUNC9]](s8), [[TRUNC10]](s8), [[TRUNC11]](s8), [[TRUNC12]](s8), [[TRUNC13]](s8), [[TRUNC14]](s8), [[TRUNC15]](s8), [[TRUNC16]](s8)
    ; CHECK: $x0 = COPY [[MV]](s64)
    ; CHECK: $x1 = COPY [[MV1]](s64)
    %0:_(s64) = COPY $x0
    %1:_(s64) = COPY $x1
    %2:_(s64) = COPY $x2
    %3:_(s128) = G_MERGE_VALUES %0:_(s64), %1:_(s64)
    %4:_(s65) = G_TRUNC %3(s128)
    %5:_(s1) = G_TRUNC %2(s64)
    %6:_(s65) = G_INSERT %4, %5(s1), 64
    %7:_(s128) = G_ANYEXT %6(s65)
    %8:_(s64), %9:_(s64) = G_UNMERGE_VALUES %7
    $x0 = COPY %8
    $x1 = COPY %9
...
---
name:            s1_s32_legal
body: |
  bb.0:
    liveins: $w0, $w1
    ; CHECK-LABEL: name: s1_s32_legal
    ; CHECK: %val1:_(s32) = COPY $w0
    ; CHECK: %val2:_(s32) = COPY $w1
    ; CHECK: %op:_(s1) = G_TRUNC %val2(s32)
    ; CHECK: %ins:_(s32) = G_INSERT %val1, %op(s1), 0
    ; CHECK: $w0 = COPY %ins(s32)
    ; CHECK: RET_ReallyLR implicit $w0
    %val1:_(s32) = COPY $w0
    %val2:_(s32) = COPY $w1
    %op:_(s1) = G_TRUNC %val2
    %ins:_(s32) = G_INSERT %val1, %op(s1), 0
    $w0 = COPY %ins
    RET_ReallyLR implicit $w0
...
---
name:            s8_s32_legal
body: |
  bb.0:
    liveins: $w0, $b0
    ; CHECK-LABEL: name: s8_s32_legal
    ; CHECK: %val:_(s32) = COPY $w0
    ; CHECK: %op:_(s8) = COPY $b0
    ; CHECK: %ins:_(s32) = G_INSERT %val, %op(s8), 0
    ; CHECK: $w0 = COPY %ins(s32)
    ; CHECK: RET_ReallyLR implicit $w0
    %val:_(s32) = COPY $w0
    %op:_(s8) = COPY $b0
    %ins:_(s32) = G_INSERT %val, %op(s8), 0
    $w0 = COPY %ins
    RET_ReallyLR implicit $w0
...
---
name:            s16_s32_legal
body: |
  bb.0:
    liveins: $w0, $h0
    ; CHECK-LABEL: name: s16_s32_legal
    ; CHECK: %val:_(s32) = COPY $w0
    ; CHECK: %op:_(s16) = COPY $h0
    ; CHECK: %ins:_(s32) = G_INSERT %val, %op(s16), 0
    ; CHECK: $w0 = COPY %ins(s32)
    ; CHECK: RET_ReallyLR implicit $w0
    %val:_(s32) = COPY $w0
    %op:_(s16) = COPY $h0
    %ins:_(s32) = G_INSERT %val, %op(s16), 0
    $w0 = COPY %ins
    RET_ReallyLR implicit $w0
...
---
name:            s32_s64_legal
body: |
  bb.0:
    liveins: $x0, $w0
    ; CHECK-LABEL: name: s32_s64_legal
    ; CHECK: %val:_(s64) = COPY $x0
    ; CHECK: %op:_(s32) = COPY $w0
    ; CHECK: %ins:_(s64) = G_INSERT %val, %op(s32), 0
    ; CHECK: $x0 = COPY %ins(s64)
    ; CHECK: RET_ReallyLR implicit $x0
    %val:_(s64) = COPY $x0
    %op:_(s32) = COPY $w0
    %ins:_(s64) = G_INSERT %val, %op(s32), 0
    $x0 = COPY %ins
    RET_ReallyLR implicit $x0
...
---
name:            s32_p0_legal
body: |
  bb.0:
    liveins: $x0, $w0
    ; CHECK-LABEL: name: s32_p0_legal
    ; CHECK: %val:_(p0) = COPY $x0
    ; CHECK: %op:_(s32) = COPY $w0
    ; CHECK: %ins:_(p0) = G_INSERT %val, %op(s32), 0
    ; CHECK: $x0 = COPY %ins(p0)
    ; CHECK: RET_ReallyLR implicit $x0
    %val:_(p0) = COPY $x0
    %op:_(s32) = COPY $w0
    %ins:_(p0) = G_INSERT %val, %op(s32), 0
    $x0 = COPY %ins
    RET_ReallyLR implicit $x0
...
---
name:            s32_s128
body: |
  bb.0:
    liveins: $q0, $w0
    ; CHECK-LABEL: name: s32_s128
    ; CHECK: %val:_(s128) = COPY $q0
    ; CHECK: %op:_(s32) = COPY $w0
    ; CHECK: [[UV:%[0-9]+]]:_(s64), [[UV1:%[0-9]+]]:_(s64) = G_UNMERGE_VALUES %val(s128)
    ; CHECK: [[INSERT:%[0-9]+]]:_(s64) = G_INSERT [[UV]], %op(s32), 0
    ; CHECK: %ins:_(s128) = G_MERGE_VALUES [[INSERT]](s64), [[UV1]](s64)
    ; CHECK: $q0 = COPY %ins(s128)
    ; CHECK: RET_ReallyLR implicit $q0
    %val:_(s128) = COPY $q0
    %op:_(s32) = COPY $w0
    %ins:_(s128) = G_INSERT %val, %op(s32), 0
    $q0 = COPY %ins
    RET_ReallyLR implicit $q0
...
---
name:            s1_s128
body: |
  bb.0:
    liveins: $q0, $w0
    ; CHECK-LABEL: name: s1_s128
    ; CHECK: %val1:_(s128) = COPY $q0
    ; CHECK: %val2:_(s32) = COPY $w1
    ; CHECK: %op:_(s1) = G_TRUNC %val2(s32)
    ; CHECK: [[UV:%[0-9]+]]:_(s64), [[UV1:%[0-9]+]]:_(s64) = G_UNMERGE_VALUES %val1(s128)
    ; CHECK: [[INSERT:%[0-9]+]]:_(s64) = G_INSERT [[UV]], %op(s1), 0
    ; CHECK: %ins:_(s128) = G_MERGE_VALUES [[INSERT]](s64), [[UV1]](s64)
    ; CHECK: $q0 = COPY %ins(s128)
    ; CHECK: RET_ReallyLR implicit $q0
    %val1:_(s128) = COPY $q0
    %val2:_(s32) = COPY $w1
    %op:_(s1) = G_TRUNC %val2
    %ins:_(s128) = G_INSERT %val1, %op(s1), 0
    $q0 = COPY %ins
    RET_ReallyLR implicit $q0
...
---
name:            s4_s32
body: |
  bb.0:
    liveins: $w0, $w1
    ; FIXME: Can't legalize this right now?

    ; CHECK-LABEL: name: s4_s32
    ; CHECK: %val1:_(s32) = COPY $w0
    ; CHECK: %val2:_(s32) = COPY $w1
    ; CHECK: %op:_(s4) = G_TRUNC %val2(s32)
    ; CHECK: %ins:_(s32) = G_INSERT %val1, %op(s4), 0
    ; CHECK: $w0 = COPY %ins(s32)
    ; CHECK: RET_ReallyLR implicit $w0
    %val1:_(s32) = COPY $w0
    %val2:_(s32) = COPY $w1
    %op:_(s4) = G_TRUNC %val2
    %ins:_(s32) = G_INSERT %val1, %op(s4), 0
    $w0 = COPY %ins
    RET_ReallyLR implicit $w0
